/* 全局容器样式 */
.app-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 主要内容区域 */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 卡片样式 */
.content-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 标题样式 */
.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
  border-bottom: 2px solid #e1e5e9;
  padding-bottom: 8px;
}

/* 树状结构容器 */
.tree-container {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.tree-section {
  flex: 1;
  background: #fafbfc;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e1e5e9;
}

.tree-section-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #374151;
}

/* 红包结果样式 */
.red-packet-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.red-packet-result {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #10b981;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app-container {
    padding: 16px;
  }
  
  .tree-container {
    gap: 16px;
  }
  
  .content-card {
    padding: 20px;
  }
}